$OpenBSD: patch-libs_ardour_source_cc,v 1.1.1.1 2012/08/17 15:33:32 stsp Exp $
--- libs/ardour/source.cc.orig	Mon Jan 23 18:22:43 2012
+++ libs/ardour/source.cc	Mon Jan 23 18:23:32 2012
@@ -79,7 +79,7 @@ Source::get_state ()
 	node->add_property ("id", buf);
 
 	if (_timestamp != 0) {
-		snprintf (buf, sizeof (buf), "%ld", _timestamp);
+		snprintf (buf, sizeof (buf), "%d", _timestamp);
 		node->add_property ("timestamp", buf);
 	}
 
@@ -104,7 +104,7 @@ Source::set_state (const XMLNode& node)
 	}
 
 	if ((prop = node.property ("timestamp")) != 0) {
-		sscanf (prop->value().c_str(), "%ld", &_timestamp);
+		sscanf (prop->value().c_str(), "%d", &_timestamp);
 	}
 
 	return 0;
